#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main() {
    int n;
    while (scanf("%d", &n) != EOF)
    {
        int i = 0;
        for (i = 0;i <= n;i++)
        {
            int j = 0;
            for (j = n;j > i;j--)
            {
                printf("  ");
            }
            for (j = n - i;j <= n;j++)
            {
                printf("*");
            }
            printf("\n");
        }
        for (i = n + 1;i < 2 * n + 1;i++)  //i 3
        {
            int j = 0;
            for (j = 0;j < i - n;j++)           //j 3
            {
                printf("  ");
            }
            for (j = i;j < 2 * n + 1;j++)  //3 4
            {
                printf("*");
            }
            printf("\n");
        }
    }
    return 0;
}